By Olga Gasparyan, June 16, 2023


This is a full set of replication files for the Manuscript "Indirect Rule and Public Goods Provision: Evidence from Colonial India". 
All the files were produced and replicated on the Mac OS machine with the macOS BigSur Version 11.5.2 operation system with the R version 4.0.3 (2020-10-10) -- "Bunny-Wunnies Freak Out"

To replicate the files, please, download all the included in replication Folder files, including all .csv, .dta, and .dbf data files.

Please, change the working directory in each of the script to your working folder where you save all the replication files. 


To replicate Table 1 of the Main text, please, download: 
- karn_nov16.csv (main data file)
- table1.R
to your working directory; change the file directory in the R code and run the script. 

To replicate Online Appendix Tables and Plots, please save to your working directory the following datasets:
- karn_nov16.csv (main data file)
- mysborderpts.dbf (geo files with the border points for Mysore)
- hyd_borderpts.dbf (geo files with the border points for Hyderabad)
- geocensus2001_nov16 (geo census file)
- IHDS_karn05.dta (survey data for 2005)
- IHDS_karn.dta (survey data for 2011-2012)
and the following scripts:
- distance-functions.R (support distance function)

You will need to use the following scripts to reproduce the results: 
- tables_c1c2.R (for tables C1-C2)
- figures_d1.R (for plots D1)
- appendix_balancetests.R (for tables D1-D2)
- appendix_covar_balancing.R (for plots E1-E4)
- appendix_altspec_cubicpoly.R (for table F1)
- appendix_altest.R (for table G1)
- bw_10_upd.R (for table H1)
- bw_15_upd.R (for table H2)
- bw_50_upd.R (for table H3)
- bw_100_upd.R (for table H4)
- appendix_placebo.R (for tables I1-I2)
- educ_lin.R (for table J1)
- appendix_surveyplot2005.R (for plot K1a)
- appendix_surveyplot2011_2012.R (for plot K1b)


File -create_logs.R reproduces the log files for all the listed R scripts.  
All the log files are saved in the pdfs with the corresponding names.







